Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

246
Vistas
Three.js Error: "Feedback loop formed between Framebuffer and active Texture" - Rendering Reflections

I'm using a CubeCamera with WebGLCubeRenderTarget to render out the surrounding reflection similar to the example here - https://threejs.org/examples/#webgl_materials_cubemap_dynamic

But the example keeps giving this error:
[.WebGL-000052760009C700] GL_INVALID_OPERATION: Feedback loop formed between Framebuffer and active Texture.
Anyone see the issue? My Code:

const reflection=()=> {

        renderer.outputEncoding = THREE.sRGBEncoding; // for post processing pass

        cubeRenderTarget1 = new THREE.WebGLCubeRenderTarget( 256, {
            format: THREE.RGBFormat,
            generateMipmaps: true,
            minFilter: THREE.LinearMipmapLinearFilter,
            encoding: THREE.sRGBEncoding // prevents the material's shader from recompiling every frame
        } );

        cubeCamera1 = new THREE.CubeCamera( .01, 10, cubeRenderTarget1 );
        cubeCamera1.position.z = 3
        cubeCamera1.position.y = -4

        reflectionMaterial = new THREE.MeshBasicMaterial( {
            envMap: cubeRenderTarget1.texture,
            color: 0x011111,
        } );

    }
    reflection()


gltfLoader.load(
          '/exportPackages/sceneMaya.glb', 
          (gltf) =>
          {   

            let meshGLB= gltf.scene.children.find(child => child.name === 'mesh_0')

            meshGLB.material = reflectionMaterial 
            
            scene.add(gltf.scene)           
          })



const animate =()=> {
     cubeCamera1.update( renderer, scene ); }; animate()
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The Fix: I needed to add

meshGLB.visible = false;
cubeCamera1.update( renderer, scene );
meshGLB.visible = true;

in my animate() to keep the material from rendering itself.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda